<template>
  <view>
    <view class="components-title">
      <view class="components-title-t">gg-button</view>
      <view class="components-title-d">表单提交按钮</view>
    </view>
    <gg-button label="提交表单" type="submit" />
    <gg-button label="重置表单按钮" type="rest" />

    <gg-button label="保存按钮" type="save" />
    <gg-button label="取消按钮" type="cancel" />
    <gg-button label="支付" type="pay" />

    <gg-button label="自定义点击事件" type="save" @click.native="diy1" />
    <gg-button label="自身点击事件" type="save" @tap="selfClick" />

  </view>
</template>
<script>
export default {
  data() {
    return {
    };
  },
  methods: {
    diy1() {
      alert('点击1');
    },
    selfClick() {
      alert('selfClick');
    },
  }
}
</script>
